<template>
    <div>
        <h1>Hello World--{{ `${text} mian`  }}</h1>
        <button @click="handleMessage">给客户端发送消息</button>
    </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
// import { ipcRenderer } from 'electron'
const text = ref('主页面')
const handleMessage = (event: any, arg: any) => {
    electron.ipcRenderer.send('message', 'mian-page-message')
}
</script>

<style lang="scss" scoped>

</style>